package transporte.web;

import java.sql.Timestamp;
import java.util.Date;

import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.support.WebBindingInitializer;
import org.springframework.web.context.request.WebRequest;

public class BinderInitializer implements WebBindingInitializer {

	public void initBinder(WebDataBinder binder, WebRequest webRequest) {
		binder.registerCustomEditor(Date.class, new TimestampDateEditor());
		binder.registerCustomEditor(Timestamp.class, new TimestampDateEditor());
	}

	
}
